package router

import (
	"database/sql"

	"gitee.com/hp-huiw/family-expense-api/internal/handler"
	"github.com/gin-gonic/gin"
)

// Sets routes for account-group resource.
func SetAccountGroupRoutes(routerGroup *gin.RouterGroup, db *sql.DB) {
	h := handler.NewAccountGroupHandler(db)

	routerGroup.GET("/query-account-group-info", h.QueryAccountGroupInfo)
	routerGroup.GET("/query-basic-statistics", h.QueryBasicStatistics)
	routerGroup.POST("/update", h.Update)
}
